package com.lhsy.djcloud.mapper;

import com.lhsy.djcloud.entity.Employee;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author wangzw
 * @since 2020-09-14
 */
public interface EmployeeMapper extends BaseMapper<Employee> {

    /**
     * 查询部门信息
     * @param deptIds
     * @return
     */
    List<Employee> selectByDeptIds(@Param("deptIds") List<Integer> deptIds);

    /**
     * 获取党员信息
     * @param employeeIds
     * @return
     */
    List<Employee> selectByIds(@Param("ids")List<Integer> employeeIds);

    List<Employee> selectByDeptIdAndSearch(@Param("deptId")Integer deptId, @Param("params")String params);

    List<Employee> selectByDeptIdsAndSearch(@Param("deptIds")List<Integer> deptIds, @Param("params")String params);

    List<Employee> selectByTenantIdAndSearch(@Param("tenantId")Integer tenantId, @Param("deptId")Integer deptId,@Param("params")String params);
}
